<html>
<head><meta charset="utf-8"><title>llvm-dwp is not recommended · t-compiler · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/index.html">t-compiler</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html">llvm-dwp is not recommended</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="226567575"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226567575" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226567575">(Feb 16 2021 at 19:58)</a>:</h4>
<p>So the author of the llvm-dwp tool had <a href="https://reviews.llvm.org/D96678#2566422">this</a> to say about llvm-dwp. We currently ship rust-llvm-dwp as a tool that we use when <code>-Csplit-debuginfo=packed</code> is supplied by the user. I think given this we should switch away? cc <span class="user-mention" data-user-id="116015">@Alex Crichton</span> <span class="user-mention" data-user-id="116107">@davidtwco</span> thoughts?</p>



<a name="226567925"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226567925" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Alex Crichton <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226567925">(Feb 16 2021 at 20:00)</a>:</h4>
<p>I don't know much about dwp (I did the macos stuff mostly, not the split-dwarf stuff), but I would agree that if the author of dwp says we shouldn't use it then we shouldn't use it</p>



<a name="226568417"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226568417" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226568417">(Feb 16 2021 at 20:03)</a>:</h4>
<p>I used it because binutils dwp didn’t support DWARF 5. As I understand it, LLVM might output DWARF 5 for some targets so that seemed like something we needed. I’m certainly open to alternatives but I don’t know what else would be suitable at the moment.</p>



<a name="226568584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226568584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> davidtwco <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226568584">(Feb 16 2021 at 20:04)</a>:</h4>
<p>The author of that comment mentions that they have patches for DWARF 5 and other dwp implementations so that might be an option in future.</p>



<a name="226577997"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226577997" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nagisa <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226577997">(Feb 16 2021 at 21:19)</a>:</h4>
<p>I wonder how hard would something like this be to implement in terms of gimli.</p>



<a name="226619596"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226619596" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226619596">(Feb 17 2021 at 06:50)</a>:</h4>
<p>I would love a gimli implementation. That would mean one less LLVM tool coupled with rustc outside of cg_llvm. Thereby making it easier to not use LLVM at all.</p>



<a name="226650830"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226650830" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Darley Barreto <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226650830">(Feb 17 2021 at 12:47)</a>:</h4>
<p><span class="user-mention" data-user-id="133247">@bjorn3</span> do you know what versions of Dwarf gimli supports? I havent found any specification on the repo.</p>



<a name="226651025"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/131828-t-compiler/topic/llvm-dwp%20is%20not%20recommended/near/226651025" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> bjorn3 <a href="https://rust-lang.github.io/zulip_archive/stream/131828-t-compiler/topic/llvm-dwp.20is.20not.20recommended.html#226651025">(Feb 17 2021 at 12:49)</a>:</h4>
<p>As far as I know it mostly supports DWARFv5. There may be some things missing though.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>